package com.neusoft.tijian.mapper;

import com.neusoft.tijian.po.Setmeal;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface SetmealMapper {

    /**
     * 查询体检套餐列表（包含检查项信息）
     */
    public List<Setmeal> listSetmealByType(Integer type);

    /**
     * 根据主键查询体检套餐
     */
    @Select("SELECT * FROM setmeal WHERE smId = #{smId}")
    public Setmeal getSetmealById(Integer smId);

}
